package org.com.coolfish.controller;


import org.com.coolfish.common.message.MsisdnCardMessage;
import org.com.coolfish.service.CMCCCardStopService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSON;



@RestController
@RequestMapping("cmcc")
public class CardStopController {
	//private MsisdnCardMessage msisdnCardMessage;
    private CMCCCardStopService cmccCardStopService;

    //月底停机
    @RequestMapping(value = "endMonthStop", method = RequestMethod.POST)
    public void endMonthStop(@RequestBody String message) {
    	MsisdnCardMessage msisdnCardmessage= JSON.parseObject(message, MsisdnCardMessage.class);
        
    	cmccCardStopService.handle(msisdnCardmessage);
       
    }
      
   
}
